import Foundation
import WidgetCalendarShared
import CalendarShared

extension AllConfigurationIntent: Intentable {
    public var isShowEvents: Bool {
        showEvents?.boolValue ?? false
    }
    public var isShowLunar: Bool {
        showLunar?.boolValue ?? false
    }
    public var isShowFestival: Bool {
        showFestival?.boolValue ?? false
    }
    public var isShowReminder: Bool {
        showReminder?.boolValue ?? false
    }
    public var themeMode: Theme {
        theme.theme
    }
    public var languageMode: Language {
        language.language
    }
    public var firstWeekMode: Week {
        firstWeek.week
    }
    public var backgroundColor: ColorModel {
        background.color
    }
    public var normalColor: ColorModel {
        normal.color
    }
    public var weekColor: ColorModel {
        week.color
    }
    public var festivalColor: ColorModel {
        festival.color
    }
    public var currentColor: ColorModel {
        current.color
    }
    public var calendarColor: ColorModel {
        calendar.color
    }
    public var workColor: ColorModel {
        work.color
    }
    public var restColor: ColorModel {
        rest.color
    }
    public var reminderColor: ColorModel {
        reminder.color
    }
}
